﻿using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel;

namespace iss.sg4210.se18.team6s.jass.DAL
{
    [MetadataType(typeof(ResponseMetaData))]
    public partial class Response
    {
    }

    [MetadataType(typeof(ResponseActionMetaData))]
    public partial class ResponseAction
    {
    }

    [MetadataType(typeof(ActionMetaData))]
    public partial class Action
    {
    }

    public class ResponseMetaData
    {
        #region Primitive Properties

        [Required]
        [DisplayName("User")]
        public object UserId
        {
            set;
            get;
        }

        [Required]
        [DisplayName("Advertisement")]
        public object AdvertisementId
        {
            set;
            get;
        }

        [Required]
        public object Name
        {
            set;
            get;
        }

        [Required]
        [DataType(DataType.EmailAddress)]
        public object Email
        {
            set;
            get;
        }

        public object Address
        {
            set;
            get;
        }

        public object Telephone
        {
            set;
            get;
        }

        [Required]
        public object Resume
        {
            set;
            get;
        }

        #endregion
    }

    public class ResponseActionMetaData
    {
        #region Primitive Properties

        [Required]
        [DisplayName("Responded By")]
        public object ResponseId
        {
            set;
            get;
        }

        [Required]
        [DisplayName("Action")]
        public object ActionId
        {
            set;
            get;
        }

        public object Notes
        {
            set;
            get;
        }

        #endregion
    }

    public class ActionMetaData
    {
        #region Primitive Properties

        [Required]
        public object Name
        {
            set;
            get;
        }

        public object Description
        {
            set;
            get;
        }

        #endregion
    }
}
